﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace otis.entities.products
{
    public class Product
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string NameEn { get; set; }

        public UseRange UseRange { get; set; }
        public Campaign Campaign { get; set; }
    }

    public class ProductHelper
    {
        public static List<Product> InitProduct(List<Campaign> campaigns, List<UseRange> useRanges)
        {

            //var campaigns = CampaignHelper.InitCampaign();
            //var useRanges = UseRangeHelper.InitUseRange();
            var items = new List<Product>();
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[0], Id = 1, Name = "无齿轮乘客电梯" });
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[0], Id = 2, Name = "无齿轮乘客电梯" });
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[1], Id = 3, Name = "无齿轮乘客电梯" });
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[1], Id = 4, Name = "无齿轮乘客电梯" });
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[2], Id = 5, Name = "无齿轮乘客电梯" });
            items.Add(new Product() { Campaign = campaigns[0], UseRange = useRanges[2], Id = 6, Name = "无齿轮乘客电梯" });
            return items;
        }
    }
}
